package com.teacher.security.entity.permission;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zfm
 * @since 2020-06-02
 */
@Data
@Accessors(chain = true)
@ApiModel(value="User对象", description="")
public class User {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @TableLogic
    private boolean isDel;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "老师工号")
    private String staffNumber;

    @ApiModelProperty(value = "权限信息")
    private String permissionInfo;

    @ApiModelProperty(value = "角色信息")
    private String roleInfo;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "部门ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long departmentId;
}
